<?php

/**
 * Created by PhpStorm.
 * User: wukent
 * Date: 2017/9/20
 * Time: 下午4:53
 */
class ProvinceModel extends Model
{
    public function getInfo($id) {
        $where = array('province_id'=>$id);
        $data = $this->where($where)->find();
        return $data['name'];
    }

}